package com.we.wecc.aw.mid.model.in;

import com.we.wecc.aw.db.model.AwardSpeech;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.BeanUtils;

@ApiModel(value = "获奖感言-入")
public class AwardSpeechIn {
    @ApiModelProperty("id,修改时必传")
    private int id;

    @ApiModelProperty("产品id")
    private int awardId;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("获奖感言speech")
    private String speech;

    @ApiModelProperty("是否已审核")
    private int state;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAwardId() {
        return awardId;
    }

    public void setAwardId(int awardId) {
        this.awardId = awardId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getSpeech() {
        return speech;
    }

    public void setSpeech(String speech) {
        this.speech = speech;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public AwardSpeech toAwardSpeech(){
        AwardSpeech as = new AwardSpeech();
        BeanUtils.copyProperties(this,as);
        return as;
    }
}
